package shared;

import java.io.Serializable;
import java.util.Map;

public class WifiObject implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private String SSID;
	private String BSSID;
	private String macAddress;
	private int signalStrength;
	private int linkSpeed;
	private int netId;
	private boolean isProfile;
	private Map<String, Integer> otherNetworks;
	private String homeLocation;
	
	public WifiObject(){};

	public WifiObject(String SSID, String BSSID, String macAddress, int rssi, int linkSpeed, int netId, boolean isProfile, Map<String, Integer> otherNetworks, String homeLocation) {
		this.SSID = SSID;
		this.BSSID = BSSID;
		this.macAddress = macAddress;
		this.signalStrength = rssi;
		this.linkSpeed = linkSpeed;
		this.netId = netId;
		this.isProfile = isProfile;
		this.otherNetworks = otherNetworks;
		this.homeLocation = homeLocation;
	}

	public String getSSID() {
		return SSID;
	}

	public void setSSID(String sSID) {
		SSID = sSID;
	}

	public String getBSSID() {
		return BSSID;
	}

	public void setBSSID(String bSSID) {
		BSSID = bSSID;
	}

	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}

	public int getSignalStrength() {
		return signalStrength;
	}

	public void setSignalStength(int signalStength) {
		this.signalStrength = signalStength;
	}

	public int getLinkSpeed() {
		return linkSpeed;
	}

	public void setLinkSpeed(int linkSpeed) {
		this.linkSpeed = linkSpeed;
	}

	public int getNetId() {
		return netId;
	}

	public void setNetId(int netId) {
		this.netId = netId;
	}
	
	public boolean isProfile() {
		return isProfile;
	}

	public void setProfile(boolean isProfile) {
		this.isProfile = isProfile;
	}

	public Map<String, Integer> getOtherNetworks() {
		return otherNetworks;
	}

	public void setOtherNetworks(Map<String, Integer> otherNetworks) {
		this.otherNetworks = otherNetworks;
	}

	public String getHomeLocation() {
		return homeLocation;
	}

	public void setHomeLocation(String homeLocation) {
		this.homeLocation = homeLocation;
	}

	public String toString(){
		
		String retStr = "SSID: " + SSID + ", " +
						"BSSID: " + BSSID + ", " +
						"macAddress: " + macAddress + ", " +
						"signalStrength: " + signalStrength + ", " +
						"linkSpeed: " + signalStrength + ", " +
						"netId: " + netId + ", " + "isProfile: " + isProfile +
						"otherNetworks: " + otherNetworks +
						"HomeLocation: " + homeLocation;
		return retStr;
	}
}
